widget: Set the allocation via gtk_widget_set_allocation()
authorBenjamin Otte <otte@redhat.com>
Sat, 20 Dec 2014 19:39:31 +0000 (20:39 +0100)
committerBenjamin Otte <otte@redhat.com>
Sat, 20 Dec 2014 19:41:18 +0000 (20:41 +0100)
There is no good reason to assign the value directly.

Also, this fixes d23f3254b7fcef0fc57739ce5cd548742870b119
where widgets that chained up instead of calling
gtk_widget_set_allocation() would not draw becaues of empty clip.

gtk/gtkwidget.c

index 6794e9e54f75b6bb3cb89870f68eb48d8e3f1028..6962bb598a9b6a4a4ca52f4043a93856d5566c24 100644 (file)
@@ -6348,7 +6348,7 @@ gtk_widget_real_size_allocate (GtkWidget     *widget,
 {
   GtkWidgetPrivate *priv = widget->priv;
 
-  priv->allocation = *allocation;
+  gtk_widget_set_allocation (widget, allocation);
 
   if (gtk_widget_get_realized (widget) &&
       gtk_widget_get_has_window (widget))